package jehc.cloud.gen.service.impl;

import jehc.cloud.common.base.BaseService;
import jehc.cloud.gen.dao.XtUrlConfigDao;
import jehc.cloud.gen.model.XtScript;
import jehc.cloud.gen.model.XtUrlConfig;
import jehc.cloud.gen.service.XtUrlConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Desc 地址配置
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
@Service("xtUrlConfigService")
public class XtUrlConfigServiceImpl extends BaseService implements XtUrlConfigService{
    @Autowired
    private XtUrlConfigDao xtUrlConfigDao;
    /**
     * 分页
     * @param condition
     * @return
     */
    public List<XtUrlConfig> getXtUrlConfigListByCondition(Map<String, Object> condition){
        return xtUrlConfigDao.getXtUrlConfigListByCondition(condition);
    }
    /**
     * 查询对象
     * @param xt_url_config_id
     * @return
     */
    public XtUrlConfig getXtUrlConfigById(String xt_url_config_id){
        return xtUrlConfigDao.getXtUrlConfigById(xt_url_config_id);
    }
    /**
     * 添加
     * @param xtUrlConfig
     * @return
     */
    public int addXtUrlConfig(XtUrlConfig xtUrlConfig){
        return xtUrlConfigDao.addXtUrlConfig(xtUrlConfig);
    }
    /**
     * 修改
     * @param xtUrlConfig
     * @return
     */
    public int updateXtUrlConfig(XtUrlConfig xtUrlConfig){
        return xtUrlConfigDao.updateXtUrlConfig(xtUrlConfig);
    }
    /**
     * 删除
     * @param condition
     * @return
     */
    public int delXtUrlConfig(Map<String, Object> condition){
        return xtUrlConfigDao.delXtUrlConfig(condition);
    }
}
